components/params_panel

Parameter panel widget.

Parameter panel widget screenshot.

Parameter panel with 4x different parameters: Slider, single selection, multi selection and content related motion curve selection.

This widget only shows up if there are actual Param Blocks in the being program.

Submodules

components/params_panel/components

Parameter components.

HTML elements equivalents for the different Param Blocks in the backend.

These are small web components wrapping HTML input elements. Each param represents a single parameter value.

class Slider()

Slider parameter.

Scalar float value which can be controlled by dragging a slider or double clicking the number label for entering with keyboard.

Slider.validate(text)

Input text validator.

Arguments
  • text (string()) – Text to validate.

Throws

error() – Invalid number

Returns

number – Clipped number.

class SingleSelection()

Select one thing out of many. Radio buttons.

SingleSelection.add_entry(possibility, index)

Add selection entry.

Arguments
  • possibility (string()) – Possibility name.

  • index (number()) – Possibility name.

class MultiSelection()

Select multiple things out of many. Checkboxes.

MultiSelection.add_entry(possibility, index)

Add selection entry.

Arguments
  • possibility (string()) – Possibility name.

  • index (number()) – Possibility name.

class MotionSelection()

Alias of Basically the same as MultiSelection. Has its own class so that we can query these elements in ParamsPanel widget when content changed messages arrive.

components/params_panel/params_panel

class ParamsPanel()

Parameter panel widget.

ParamsPanel.content_changed()

Update displayed values in MotionSelection elements.